class CreateGblogs < ActiveRecord::Migration
  def self.up
    create_table :gblogs do |t|
	
      t.string :title
      #array of tags
      t.string :tags
      t.string :blogURL
      t.string :author	
      t.string:publisheddate
      t.integer :upload_day
      t.integer :upload_month
      t.integer :upload_year
      t.string :content
      t.references :tag

      t.timestamps
    end
  end

  def self.down
    drop_table :gblogs
  end
end
